#!/bin/bash  

build_path=$1

if [ ! $1 ]; then
    exit 0
fi

#上传到pgyer
api_key="1cdad4511eaaafc93a2b0555fc8b8e9f"
password="tange"
echo '///-------------'
echo '/// 上传中 '
echo '///-------------'
branchName=$(git branch | grep \* | cut -d ' ' -f2)
echo $branchName
#curl -F "file=@"${build_path} -F "buildPassword="${password} -F "buildInstallType=2" -F "_api_key="${api_key} https://www.pgyer.com/apiv2/app/upload
echo '///-------------'
echo '/// 发布完成 '
echo '///-------------'


exit 0

